<ul class="nav nav-tabs" role="tablist">
  <li><a href="<?php echo $this -> url('home', array('action' => 'main')); ?>">Back to Main Menu</a></li>
  <li class="active"><a href="<?php echo $this -> url('insert', array('action' => 'insert')); ?>">New Item</a></li>
  <li><a href="<?php echo $this -> url('transaksi', array('action' => 'transaksi')); ?>">Transaksi</a></li>
  <li><a href="<?php echo $this -> url('report', array('action' => 'report')); ?>">Report</a></li>
  <li ><a href="<?php echo $this -> url('login/logout', array('action' => 'logout')); ?>">Logout</a></li>
</ul>
<h3>
	Beli Barang Baru
</h3>


<?php
$form = $this -> form;
$form->setAttribute('action', $this->url(
    'insert',
    array(
        'action' => 'insert',
    )
));
$form -> prepare();
echo $this->form()->openTag($form);
?>
<div id='formContainer'>
	<div id='formNama'>
		<?php
			echo $this -> formLabel($form -> get('nama'));
		?>
		<BR>
		<?php
			echo $this -> formElement($form -> get('nama'));
		?>
		<h5>
			<?php
				echo $this -> formElementErrors($form -> get('nama'));
			?>
		</h5>
	</div>
	<div id='formJumlah'>
		<?php
			echo $this -> formLabel($form -> get('stok'));
		?>
		<BR>
		<?php
			echo $this -> formElement($form -> get('stok'));
		?>
		<h5>
			<?php
				echo $this -> formElementErrors($form -> get('stok'));
			?>
		</h5>	
	</div>
	<div id='formHarga'>
		<?php
			echo $this -> formLabel($form -> get('hargaBeli'));
		?>
		<BR>
		<?php
			echo $this -> formElement($form -> get('hargaBeli'));
		?>
		<h5>
		<?php
			echo $this -> formElementErrors($form -> get('hargaBeli'));
		?>
		</h5>
	</div>
	

	<div id='formInsertSubmit'>
		<?php
			echo $this -> formElement($form -> get('btnSubmit'));
			echo $this -> formElementErrors($form -> get('btnSubmit'));
		?>
	</div>

</div>
<?php
echo $this->form()->closeTag($form);
?>